# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sipcalc
pkgver=1.1.6
pkgrel=6
pkgdesc='An advanced console based ip subnet calculator.'
arch=('x86_64' 'aarch64')
url='https://www.routemeister.net/projects/sipcalc/'
license=('BSD')
depends=('glibc')
source=("https://www.routemeister.net/projects/sipcalc/files/$pkgname-$pkgver.tar.gz")
sha512sums=('9d2047a6fb6ef177d455f44abea19bab7d0131b16eb2444b2b074e94e776854fa74084ab625d2be9b64d136979ede71722c2e24dca12ff54e4a5bb02f947570e')

build() {
	cd "$pkgname-$pkgver"

	./configure --prefix=/usr

  make
}

package() {
	cd "$pkgname-$pkgver"

	make DESTDIR="$pkgdir/" install

  install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

